import request from '@/util/request'

const warehouseUrl='/warehouse/'

export function addWareInfo(data){
    return request({
        method: 'post',
        url: warehouseUrl + 'add/wareInfo',
        data,
    })
}
export function getWareInfoListPage(pageNum,pageSize,wareInfoSearchDto){
    return request({
        method: 'get',
        url: warehouseUrl + `get/wareInfo/list/page/${pageNum}/${pageSize}`,
       params:wareInfoSearchDto
    })
}
export function getWareInfoList(){
    return request({
        method: 'get',
        url: warehouseUrl + `get/wareInfo/list`,
    })
}

export function addWareSku(data){
    return request({
        method: 'post',
        url: warehouseUrl + 'add/wareSku',
        data,
    })
}
export function getWareSkuListPage(pageNum,pageSize,wareSkuSearchDto){
    return request({
        method: 'get',
        url: warehouseUrl + `get/wareSku/list/page/${pageNum}/${pageSize}`,
        params:wareSkuSearchDto
    })
}
